﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Web.Enhancements.Rest;

namespace TestWeb25.Components.UserGui.Providers
{
    public class Calculator : IWebRestService
    {
        public Calculator()
        {
        }

        [WebRestMethodAttribute(false)]
        public string Add(decimal value1, decimal value2)
        {
            return string.Format("The result of {0}+{1} is {2}.", value1.ToString(), value2.ToString(), (value1 + value2).ToString());
        }
    }
}